package edu.sctu.nieyu.day20150510.methodcall;

/**
 * Created by user01 on 2015/5/10.
 */
public class Mainprint {
    public static void main(String[] args) {

        MessageOne messageOne = new MessageOne();
        messageOne.name = "Tom";
        messageOne.age = 19;
        messageOne.sex = "man";

        MessageTwo messageTwo = new MessageTwo();
       MessageThree messageThree = messageTwo.setMessage(messageOne);
        System.out.println("Student A:"+ messageTwo.A + "\n" + "Student B:"+"\n" + messageThree.B);

    }
}
